package com.hx.io.file;

import java.io.File;
import java.io.IOException;

/**
 * @author jxlgcmh
 * @create 2019-05-09 13:26
 */
public class FileDemo2 {
    public static void main(String[] args) throws IOException {
        File file = new File("b.txt");
        if (!file.exists()) {
            file.createNewFile();
        } else {
            System.out.println("文件已存在！");
        }
    }
}
